package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 宠物发布对象 pet_publish
 */
public class PetPublish extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 发布ID */
    private Long publishId;

    /** 宠物名称 */
    private String petName;

    /** 发布人ID */
    private Long publisherId;

    /** 发布人名称 */
    private String publisherName;

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    private Date publishTime;

    /** 联系电话 */
    private String phone;

    /** 宠物类型id */
    private Long petType;

    private String petTypeName;

    /** 宠物性别（0=公，1=母） */
    private String gender;

    /** 宠物年龄 */
    private Integer age;

    /** 宠物描述 */
    private String description;

    /** 宠物图片 */
    private String image;

    /** 状态（0=待审核，1=已通过，2=已拒绝） */
    private String status;

    /** 审核人 */
    private String approveBy;

    /** 审核时间 */
    private Date approveTime;

    /** 审核意见 */
    private String comment;

    public void setPublishId(Long publishId) {
        this.publishId = publishId;
    }

    public Long getPublishId() {
        return publishId;
    }

    public void setPetName(String petName) {
        this.petName = petName;
    }

    public String getPetName() {
        return petName;
    }

    public void setPublisherId(Long publisherId) {
        this.publisherId = publisherId;
    }

    public Long getPublisherId() {
        return publisherId;
    }

    public void setPublisherName(String publisherName) {
        this.publisherName = publisherName;
    }

    public String getPublisherName() {
        return publisherName;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setPetType(Long petType) {
        this.petType = petType;
    }

    public Long getPetType() {
        return petType;
    }

    public String getPetTypeName() {
        return petTypeName;
    }

    public void setPetTypeName(String petTypeName) {
        this.petTypeName = petTypeName;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGender() {
        return gender;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setApproveBy(String approveBy) {
        this.approveBy = approveBy;
    }

    public String getApproveBy() {
        return approveBy;
    }

    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() {
        return approveTime;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getComment() {
        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("publishId", getPublishId())
                .append("petName", getPetName())
                .append("publisherId", getPublisherId())
                .append("publisherName", getPublisherName())
                .append("phone", getPhone())
                .append("petType", getPetType())
                .append("gender", getGender())
                .append("age", getAge())
                .append("description", getDescription())
                .append("image", getImage())
                .append("status", getStatus())
                .append("approveBy", getApproveBy())
                .append("approveTime", getApproveTime())
                .append("comment", getComment())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
} 